package net.crowdloud.client.crowdLoud;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * 
 * @UserManual
 */
public class ButtonAllCrowdLoud extends Button {

	public ButtonAllCrowdLoud(final String group) {

		this.setText("!!! CROWD LOUD !!!");

		this.addClickHandler(new ClickHandler() {

			@Override
			public void onClick(ClickEvent event) {

				RootPanel.get().clear();
				RootPanel.get().add(new AllCrowdLoudPage(group));
			}
		});
	}
}
